package com.dsh.controller;

import com.dsh.model.GoodsBrowserLogEntity;
import com.dsh.service.GoodsBrowserLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("goods")
public class GoodsBrowserLogController {
    @Autowired
    GoodsBrowserLogService goodsBrowserLogService;

    @RequestMapping("log/findGoodsBrowserLog")
    public List<GoodsBrowserLogEntity>  findGoodsBrowserLog(@RequestBody Map map){
        return goodsBrowserLogService.findGoodsBrowserLog(map);
    }
}
